package net.sf.window.scope;

import java.util.UUID;

import javax.servlet.http.HttpSession;

public class IdPrinter 
{
	private String myId;
	
	public IdPrinter() 
	{
		myId = UUID.randomUUID().toString();
	}
	
	@Override
	public String toString() 
	{
		return myId;
	}
	
	public String printIdWithSession(HttpSession session)
	{
		return "idPrinter: " + toString() + " session: " + session.getId();
	}
}
